package com.ruoyi.system.domain.customer;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;


public class CustomerAddr extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 自增主键ID */
    private Long customerAddrId;

    /** customer_login表的自增ID */
    @Excel(name = "customer_login表的自增ID")
    private Long customerId;

    @Excel(name = "收货人")
    private String name;

    /** 联系手机号 */
    @Excel(name = "联系手机号")
    private String tel;

    /** 邮编 */
    @Excel(name = "邮编")
    private String postalCode;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 地区 */
    @Excel(name = "地区")
    private String county;

    /** 地区编码 */
    @Excel(name = "地区编码")
    private String areaCode;

    /** 具体的地址门牌号 */
    @Excel(name = "具体的地址门牌号")
    private String addressDetail;

    /** 是否默认(0表示否,1表示是) */
    @Excel(name = "是否默认(0表示否,1表示是)")
    private String isDefault;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;

    public void setCustomerAddrId(Long customerAddrId)
    {
        this.customerAddrId = customerAddrId;
    }

    public Long getCustomerAddrId()
    {
        return customerAddrId;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setTel(String tel)
    {
        this.tel = tel;
    }

    public String getTel()
    {
        return tel;
    }
    public void setAreaCode(String areaCode)
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode()
    {
        return areaCode;
    }
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setCounty(String county)
    {
        this.county = county;
    }

    public String getCounty()
    {
        return county;
    }
    public void setAddressDetail(String addressDetail)
    {
        this.addressDetail = addressDetail;
    }

    public String getAddressDetail()
    {
        return addressDetail;
    }
    public void setIsDefault(String isDefault)
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault()
    {
        return isDefault;
    }
    public void setModifiedTime(Date modifiedTime)
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime()
    {
        return modifiedTime;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("customerAddrId", getCustomerAddrId())
                .append("customerId", getCustomerId())
                .append("tel", getTel())
                .append("areaCode", getAreaCode())
                .append("province", getProvince())
                .append("city", getCity())
                .append("county", getCounty())
                .append("addressDetail", getAddressDetail())
                .append("isDefault", getIsDefault())
                .append("modifiedTime", getModifiedTime())
                .toString();
    }
}
